﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Booky.DataStorage
{
    [Serializable]
    public class Tag
    {
        public ObjectId Id { get; set; }
        public ObjectId User { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public IList<Tag> Tags { get; set; }
        public bool IsMainTag { get; set; }
        public int ViewOrder { get; set; }
        public string DtCreatedOn { get; set; }
        [BsonDateTimeOptions(DateOnly = true)]
        public DateTime CreatedOn { get; set; }
    }
}
